public class Diamond {
    public static void main(String[] args){
        print(8);
    }
    public static void print(int size){
        if(size%2==0){
            size++;
        }
        for(int i=0;i<size/2+1;i++){
            for(int j=size/2+1;j>i+1;j--){
                System.out.print(" ");
            }
            for(int j=0;j<i*2+1;j++){
                System.out.print("*");
            }
            System.out.println();
        }
        for(int i = size/2+1;i<size;i++){
            for(int j=0;j<i-size/2;j++){
                System.out.print(" ");
            }
            for (int j = 0; j < 2 * size - 1 - 2 * i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
